package com.horse.cloud.pay.alipay;

import com.horse.cloud.framework.general.utils.SpringContextUtil;
import com.horse.cloud.pay.core.AbstractPayFactory;
import com.horse.cloud.pay.core.AbstractPayment;
import org.springframework.stereotype.Component;

/**
 * @create: Created by intelliJ IDEA18.1.3
 * @author: bing.Pan
 * @e-mail: 15923508369@163.com
 * @gmdate: 29/04/2019　13:55　星期一 (dd/MM/YYYY HH:mm)
 * @sidesc:
 */
@Component
public class AliPayFactory extends AbstractPayFactory {

    @Override
    public AbstractPayment getPayment(String code) {

        return (AbstractAliPay)SpringContextUtil.getBean(code);

    }
}
